PersistedState

open class PersistedState : Serializable, CriteriaDataSource

Represents the state of the Tracker. This serialized when the application state is persisted (and deserialized when the application state is retrieved)

Constructors

Link copied to clipboard
constructor()
Default constructor, required for serialization
constructor(respondentId: String)
Constructs and persistenceSerializer of PersistedState with a given persistenceSerializer of TrackerSettings and the provided respondent ID

Properties

Link copied to clipboard
Link copied to clipboard
@SerializedName(value = "encodingVersion")
open var encodingVersion: Int
Link copied to clipboard
@SerializedName(value = "exitNotificationDate")
open var exitNotificationDate: Date
Link copied to clipboard
@SerializedName(value = "firstLaunchDate")
open var firstLaunchDate: Date
Link copied to clipboard
@SerializedName(value = "lastLaunchDate")
open var lastLaunchDate: Date
Link copied to clipboard
@SerializedName(value = "launchCount")
open var launchCount: Int
Link copied to clipboard
open val pageViews: Int
Link copied to clipboard
@SerializedName(value = "respondentId")
open var respondentId: String
Link copied to clipboard
@SerializedName(value = "state")
open var state: TrackingStates
Link copied to clipboard
@SerializedName(value = "surveyCompletedDate")
open var surveyCompletedDate: Date
Link copied to clipboard
@SerializedName(value = "surveyDeclinedDate")
open var surveyDeclinedDate: Date
Link copied to clipboard
@SerializedName(value = "thisLaunchDate")
open var thisLaunchDate: Date
Link copied to clipboard
@SerializedName(value = "triggeredMeasure")
open var triggeredMeasure: String

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
abstract fun getFirstLaunchDate(): Date
Link copied to clipboard
abstract fun getLastLaunchDate(): Date
Link copied to clipboard
abstract fun getLaunchCount(): Int
Link copied to clipboard
abstract fun getPageViews(): Int
Link copied to clipboard
Link copied to clipboard
open fun getSignificantEvents(): Map<String, SignificantEvent>
Getter for the Map of significant events.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun logInviteShown(@NonNull key: String, date: Date)
Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun resetCounters()
Link copied to clipboard
open fun setSurveyCompleted(surveyCompleted: Boolean)
Link copied to clipboard
open fun setSurveyDeclined(surveyDeclined: Boolean)